package t20211204.pac1.p4;

/**
 * @Author: DengJia
 * @Date: 2021/12/4 21:31
 * @Description:
 */

public class Outer {
    private String val;

    private void out() {
        System.out.println(this.val);
    }

    public class Inner {
        public void modifyAndOut() {
            val += " ( modify by inner ~ )";
            out();
        }
    }

    private void innerOp() {
        Inner inner = new Inner();
        inner.modifyAndOut();
    }

    public static void main(String[] args) {
        Outer o = new Outer();
        o.val = "Outer";
        o.out();
        o.innerOp();
    }
}
